package leetcode.medium.isvalid;

import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import util.SolutionValidator;


public class SolutionTest {
    private static Solution solution;

    @BeforeClass
    public static void setup() {
        SolutionValidator.checkSolved(Solution.class);
        solution = new Solution();
    }

    @AfterClass
    public static void tearUp() {
        solution = null;
    }

    @Test
    public void test1() {
        Assert.assertTrue(solution.isValid("aabcbc"));
    }

    @Test
    public void test2() {
        Assert.assertTrue(solution.isValid("abcabcababcc"));
    }

    @Test
    public void test3() {
        Assert.assertFalse(solution.isValid("abccba"));
    }
}
